Power management for a graphics processing unit or other circuit

ABSTRACT

In one embodiment, a system includes power management control that controls a duty cycle of a processor to manage power. The duty cycle may be the amount of time that the processor is powered on as a percentage of the total time. By frequently powering up and powering down the processor during a period of time, the power consumption of the processor may be controlled while providing the perception that the processor is continuously available. For example, the processor may be a graphics processing unit (GPU), and the period of time over which the duty cycle is managed may be a frame to be displayed on the display screen viewed by a user of the system.

PRIORITY INFORMATION

This application is a continuation of U.S. patent application Ser. No.14/549,656, filed Nov. 21, 2014, now U.S. Pat. No. 9,494,994, which is acontinuation of U.S. patent application Ser. No. 13/090,459, filed Apr.20, 2011, now U.S. Pat. No. 8,924,752. The above are incorporated byreference herein in their entireties.

BACKGROUND Technical Field

Embodiments described herein are related to the field of powermanagement in integrated circuits and systems employing integratedcircuits.

Description of the Related Art

As the number of transistors included on an integrated circuit “chip”continues to increase, power management in the integrated circuitscontinues to increase in importance. Power management can be critical tointegrated circuits that are included in mobile devices such as personaldigital assistants (PDAs), cell phones, smart phones, laptop computers,net top computers, etc. These mobile devices often rely on batterypower, and reducing power consumption in the integrated circuits canincrease the life of the battery. Additionally, reducing powerconsumption can reduce the heat generated by the integrated circuit,which can reduce cooling requirements in the device that includes theintegrated circuit (whether or not it is relying on battery power).

Clock gating is often used to reduce dynamic power consumption in anintegrated circuit, disabling the clock to idle circuitry and thuspreventing switching in the idle circuitry. Additionally, someintegrated circuits have implemented power gating to reduce static powerconsumption (e.g. consumption due to leakage currents). With powergating, the power to ground path of the idle circuitry is interrupted,reducing the leakage current to near zero.

Power gating can be an effective power conservation mechanism. On theother hand, power gating reduces performance because the power gatedcircuitry cannot be used until power is restored and the circuitry isinitialized for use. The tradeoff between performance (especiallyperceived performance from the user perspective) and power conservationis complex and difficult to manage.

SUMMARY

In one embodiment, a system includes power management control thatcontrols a duty cycle of a processor to manage power. The duty cycle maybe the amount of time that the processor is powered on as a percentageof the total time to complete a task. By frequently powering up andpowering down the processor during a period of time, the powerconsumption of the processor may be controlled while providing theperception that the processor is continuously available. For example,the processor may be a graphics processing unit (GPU), and the period oftime over which the duty cycle is managed may be a frame to be displayedon the display screen viewed by a user of the system.

In an embodiment, the duty cycle may be managed based on thermalmeasurements in the system. If the temperature is rising, a duty cyclecontroller may reduce a duty cycle of the processor. A power manager forthe processor may attempt to control the processor so that theutilization of the processor remains at or below the duty cycle, andotherwise in a desired range (e.g. about 70% to 90%). When theutilization is reduced, the power manager may lower the voltage andfrequency to the processor. Accordingly, the processor, operating moreslowly, may take longer to finish tasks and thus the utilizationincreases. With the lower frequency and voltage, the power consumed inthe processor may be reduced and thus the temperature may decrease eventhough the utilization has increased.

BRIEF DESCRIPTION OF THE DRAWINGS

The following detailed description makes reference to the accompanyingdrawings, which are now briefly described.

FIG. 1 is a diagram illustrating power consumption over time.

FIG. 2 is a block diagram of one embodiment of a system.

FIG. 3 is a block diagram of one embodiment of a graphics processingunit (GPU) and related power management blocks.

FIG. 4 is a flowchart illustrating operation of one embodiment of a GPUcontrol unit shown in FIG. 3.

FIG. 5 is a flowchart illustrating operation of one embodiment of a dutycycle controller shown in FIG. 3.

FIG. 6 is a diagram illustrating a transfer function between an outputof a duty cycle controller and the duty cycle limit for the GPU controlunit.

FIG. 7 is a block diagram illustrating one embodiment of duty cycling anon/off state of a GPU.

FIG. 8 is a block diagram of one embodiment of a computer accessiblestorage medium.

Specific embodiments are shown by way of example in the drawings andwill herein be described in detail, but are susceptible to variousmodifications and alternative forms. It should be understood, however,that the drawings and detailed description thereto are not intended tolimit any of the embodiments to the particular form disclosed, but onthe contrary, the intention is to cover all modifications, equivalentsand alternatives falling within the spirit and scope that is defined bythe appended claims. The headings used herein are for organizationalpurposes only and are not meant to be used to limit the scope of thedescription. As used throughout this application, the word “may” is usedin a permissive sense (i.e., meaning having the potential to), ratherthan the mandatory sense (i.e., meaning must). Similarly, the words“include”, “including”, and “includes” mean including, but not limitedto.

Various units, circuits, or other components may be described as“configured to” perform a task or tasks. In such contexts, “configuredto” is a broad recitation of structure generally meaning “havingcircuitry that” performs the task or tasks during operation. As such,the unit/circuit/component can be “configured to” perform the task evenwhen the unit/circuit/component is not currently powered on, because itincludes the circuitry that implements the task. In general, thecircuitry that forms the structure corresponding to the task may includehardware circuits and/or memory. The memory may store programinstructions that are executable to implement the operation. The memorycan include volatile memory such as static or dynamic random accessmemory. Additionally or in the alternative, the memory may includenonvolatile memory such as optical or magnetic disk storage, flashmemory, programmable read-only memories, etc. Similarly, variousunits/circuits/components may be described as performing a task ortasks, for convenience in the description. Such descriptions should beinterpreted as including the phrase “configured to.” Reciting aunit/circuit/component that is configured to perform one or more tasksis expressly intended not to invoke 35 U.S.C. § 112, paragraph sixinterpretation for that unit/circuit/component.

DETAILED DESCRIPTION OF EMBODIMENTS

FIG. 1 is a diagram illustrating an example of dynamic power consumptionover time in a processor (such as a GPU, for example). The dynamic powerwave form 10 may increase at times of higher workload in the GPU, andmay decrease at other times when the GPU is not busy. If a static powerlimit (dotted line 12) were implemented to control temperature and/orpower consumption in the system, the performance of the processor wouldbe capped such that its peak power stays under the static limit. Thatis, the GPU would be throttled, which may result in dropped frames orother visible discontinuities that are undesirable in the userexperience. On the other hand, there may be times in which the powerconsumption is significantly below the limit (e.g. area 16 in FIG. 1).

In one embodiment, the power management unit described below may beconfigured to manage the duty cycle of a processor to control it's powerconsumption. The power management unit may be configured to permit theprocessor to temporarily exceed a power budget for the processor, aslong as the average power consumed remains within budget. The powermanagement unit may implement a negative feedback loop based on theactual power consumed and the target power, and may use the errorbetween the actual power and target power to control the duty cycle. Theerror in the case that the actual power is lower than the target powermay be used for bursts of high power consumption when the workload ofthe processor increases.

Some of the embodiments below use a GPU as an example of the processorfor which the power management unit is used. However, other embodimentsmay implement the power management unit with any processor (e.g. acentral processing unit (CPU), other special purpose processors such asinput/output processors (IOPs), digital signal processors (DSPs),embedded processors, microcontrollers, etc.). Still further, otherembodiments may implement the power management to control fixed-functioncircuitry.

FIG. 2 is a block diagram of one embodiment of a system 18. In theillustrated embodiment, the system 18 includes an integrated circuit(IC) 20 which may be a system on a chip (SOC) in this embodiment. The IC20 includes various processors such as a CPU 22 and a GPU 24. The IC 20further includes a power management unit (PMU) 26, a clock generator 28,and one or more temperature sensors 30A-30B. The system 18 also includesa power supply 32, which may include a power measurement circuit 34 on asupply voltage provided to the GPU 24 (V_(GPU) in FIG. 2).

The PMU 26 is configured to generate voltage requests to the powersupply 32, which is configured to supply the requested voltages on oneor more voltage inputs to the IC 20. More particularly, the PMU 26 maybe configured to transmit a request for a desired voltage magnitude(including a magnitude of zero when the corresponding circuitry is to bepowered down, in some embodiments). The number of independent voltageinputs supported by the IC 20 may vary in various embodiments. In theillustrated embodiment, the V_(GPU) input is supported for the GPU 24along with a V_(CPU) input for the CPU 22 and a V_(IC) input for therest of the integrated circuit 20. Each voltage input may be provided tomultiple input pins on the integrated circuit 20 to support enoughcurrent flow and power supply voltage stability to the suppliedcircuitry. Other embodiments may power the CPU with a separate supplybut the GPU may receive the V_(IC) supply. Still other embodiments mayinclude other non-CPU voltage supplies besides the V_(GPU) and V_(IC)inputs.

The supply voltage to power-gated circuits such as the GPU 24 may becontrolled via voltage requests from the PMU 26, but may also becontrolled via power gate controls issued internally by the PMU 26 (e.g.the Power Gate control signals shown in FIG. 2). Gating the powerinternally may be performed more quickly than issuing voltage requeststo the power supply 32 (and powering up may be performed more quickly aswell). Accordingly, voltage requests to the power supply 32 may be usedto vary the magnitude of the supply voltage (to adjust an operatingpoint of the GPU 24), and the power gating during times that the GPU 24is sleeping (or off) may be controlled internal to the IC 20.

As mentioned above, the PMU 26 may implement a negative feedback loop tocontrol power consumption in the GPU 24. The PMU 26 may be configured toadjust the duty cycle of the GPU 24 responsive to the error between atarget power and the actual power. Generally, the duty cycle may beviewed as a limit to the percentage of time that the GPU 24 is on (notpower-gated) in a given period of time. The percentage of time that theGPU 24 is on in a given period of time may be the utilization. Forexample, the duty cycle and utilization may be measured over a frametime, where a frame time is the period of time elapsing for the displayof one frame on a display device such as monitor, a touch screendisplay, etc. Viewed in another way, the utilization may be the ratio ofthe GPU's powered up time to an overall time for the display of multipleframes. In other embodiments that control other processors or fixedfunction circuitry, the utilization may similarly be defined as the ontime of the controlled circuitry to the total time.

The target power may be determined in a variety of fashions. Forexample, the target power may be programmed in a register in the PMU 26.Alternatively, the target power may be based on the operatingtemperature in the system (e.g. as measured by the temperature sensors30A-30B). In yet another example for a portable system that operates ona limited power supply such as a battery, the target power may be basedon the remaining battery life. Combinations of the above factors and/orother factors may be used to determine the target power.

The actual power consumed may be measured (e.g. by the power measurementcircuit 34, or by a similar circuit internal to the IC 20).Alternatively, the actual power may be estimated as a function of theactivity in the GPU 24 and a profile of the power consumption of variousparts of the GPU 24. The profile may be based on simulation of the GPU24 design and/or based on measurements of the GPU 24 in operation.

The PMU 26 and/or various components thereof such as shown in FIG. 3 inan embodiment may be implemented as any combination of hardwarecircuitry and/or instructions executed on one or more processors such asthe CPU 22 and/or the GPU 24. The instructions may be stored on acomputer accessible storage medium such as that shown in FIG. 8.Accordingly, a power management unit, power control unit, or controllermay be any combination of hardware and/or processor execution ofsoftware, in various embodiments.

The power measurement circuit 34 may, e.g., be configured to measure thecurrent flow on the V_(GPU) supply. Based on the requested voltage, thepower consumed in the GPU 24 may be determined either by the powermeasurement circuit 34 or the PMU 26. The power measurement circuit 34may, e.g., be readable by software to determine the current/powermeasurement or may supply the current/power measurement on an input tothe IC 20.

The clock generator 28 may supply clocks to the CPU (CPU Clk in FIG. 2),the GPU (GPU Clk in FIG. 2), the PMU 26, and any other circuitry in theIC 20. The clock generator 28 may include any clock generation circuitry(e.g. one or more phase lock loops (PLLs), digital delay lock loops(DLLs), clock dividers, etc.). The clock generator 28 may be programmedby the PMU 26 to set the desired clock frequencies for the CPU clock,the GPU clock, and other clocks.

Together, the supply voltage and clock frequency of a circuit in the IC20 may be referred to as an operating point for the circuit. Theoperating point may directly affect the power consumed in the circuit,since the dynamic power is proportional to the frequency and to thesquare of the voltage. Accordingly, the reduced power consumption in thecircuit when both the frequency and the voltage are reduced may be acubic effect. However, operating point adjustments which change only thefrequency or only the voltage may be made also (as long as the circuitryoperates correctly at the selected frequency with the selected voltage).

The CPU 22 may be any type of processor and may implement an instructionset architecture. Particularly, the CPU 22 may implement any generalpurpose instruction set architecture. The CPU 22 may have anymicroarchitecture, including in-order or out-of-order, speculative ornon-speculative, scalar or superscalar, pipelined, multithreaded, etc.

The GPU 24 may implement any graphics application programming interface(API) architecture. The graphics API architecture may define an abstractinterface that is specially purposed to accelerate graphics operations.The GPU 24 may further support various languages for general purposecomputation (e.g. OpenCL), etc.

The temperature sensors 30A-30B may be any type of temperature sensingcircuitry. When more than one temperature sensor is implemented, thetemperature sensors may be physically distributed over the surface ofthe IC 20. In a discrete implementation, the temperature sensors may bephysically distributed over a circuit board to which the discretecomponents are attached. In some embodiments, a combination ofintegrated sensors within the IC and external discrete sensors may beused.

It is noted that, while the illustrated embodiment includes componentsintegrated onto an IC 20, other embodiments may include two or more ICsand any level of integration or discrete components.

Turning next to FIG. 3, a block diagram of one embodiment of the PMU 26is shown in greater detail. The GPU 24 and the temperature sensors30A-30B are shown as well. In the illustrated embodiment the PMUincludes a summator 40 coupled to receive an actual temperaturemeasurement from the temperature sensors 30A-30B and a targettemperature (e.g. that may be programmed into the PMU 26, for example,or that may be set as a software parameter). As illustrated by the plusand minus signs on the inputs to the summator 40, the summator 40 isconfigured to take the difference between the target temperature and theactual temperature. The resulting temperature difference may be providedto a temperature control unit 42 which may output a target GPU power toa summator 44. The summator 44 may receive the actual GPU power from aGPU power measurement unit 46 (through a low pass filter (LPF) 48 in theillustrated embodiment). The output of the summator 44 may be thedifference between the actual GPU power and the target GPU power (asillustrated by the plus and minus signs on the inputs), and may be anerror in the power tracking. The difference may be input to a GPU powertracking controller 49. In the illustrated embodiment, the GPU powertracking controller 49 may include a proportional controller (PControl)50, an integral controller (IControl) 52, a limiter 54, a summator 56,and a Max block 58. Thus, in the illustrated embodiment, the GPU powertracking controller 49 may be a proportional-integral (PI) controller.More particularly in the illustrated embodiment, the difference outputfrom the summator 44 may be input to the PControl 50 and the IControl52. The output of the IControl 52 may be passed through a limiter 54 toa summator 56 which also receives the output of the PControl 50, theoutput of which may passed through a Max block 58 to ensure that it isgreater than zero. The output of the Max block 58 may be added to anapplication specified off time in the summator 60 to produce a desiredduty cycle. A GPU control unit 62 may receive the duty cycle, and maychange the GPU 24 to a different operating point in response. Theavailable operating points may be stored in a GPU state table 64.

The summator 44 may be the beginning of the negative feedback loop thatis configured to track the power error and is configured to attempt tominimize the error of the actual power exceeding the target power. Inthis embodiment, the actual power may be less than the target power byany amount. Other embodiments may also limit the difference between theactual power and the target power below a lower threshold, for example,to improve performance. In the illustrated embodiment, aproportional-integral (PI) control may be implemented in the GPU powertracking controller 49. The proportional component of the control may beconfigured to react to the current error, while the integral componentmay be configured to react to the error integrated over time. Moreparticularly, the integral component may be configured to eliminate thesteady state error and control the rate at which the target GPU power isreached. The amount of integral control may be limited through thelimiter 54, in some embodiments, as desired. Generally, the gains ofboth the proportional controller 50 and integral controller 52 may beprogrammable, as may the limiter 54.

The summator 56 may be configured to sum the outputs of the proportionalcontroller 50 and the limiter 54, generating a value that may beinversely proportional to the duty cycle to be implemented by the GPUcontrol unit 62. The block 58 may ensure that the output is positive,effectively ignoring the case where the actual power is less than thetarget power. Together, the components 44, 50, 52, 54, 56, and 58 may bereferred to as the duty cycle controller herein. In other embodiments,the duty cycle controller may output the duty cycle itself.

In the illustrated embodiment, the operation of the feedback loop may beexposed to applications. Some applications may attempt to control GPUpower consumption at a higher level of abstraction, and theapplications' efforts may interfere with the operation of the PMU 26. Byproviding exposure to the application, the PMU 26 may permit theapplication to have an effect on loop operation and thus the applicationdeveloper may no longer include application-level efforts to control GPUpower. In other embodiments, application input may not be provided andthe summator 60 may be eliminated. In the illustrated embodiment, theapplication may specify an off time for the GPU during a given frametime.

While PI control is shown in FIG. 3 for the GPU power trackingcontroller 49, other embodiments may implement other control units suchas including derivative control (PID), or any other subcombination ofproportional, integral, and derivative control. Still further, any othercontrol design may be used (e.g. table based).

The GPU control unit 62 may be configured to adjust the operating pointof the GPU 24 based on the utilization of the GPU 24. The utilization ofthe GPU 24 may be viewed as the percentage of a frame time that the GPU24 is powered up and operating. The duty cycle indicated by the dutycycle controller (and converted to duty cycle by the GPU control unit62, as discussed in more detail below) may serve as a limit to theutilization in order to meet thermal requirements, battery liferequirements, etc. However, the actual utilization may be smaller (e.g.if the GPU 24 is performing relatively simple operations each frametime, the actual utilization may be lower than the duty cycle). If theutilization is lower than the duty cycle, it may still be desirable toreduce the operating point of the GPU 24 to reduce power consumption,increasing the utilization. The duty cycle may vary between 100% (nothrottling by the duty cycle controller) and a lower limit within therange of duty cycles. For example, the lower limit may be about 70% ofthe frame time. If the utilization is lower than a threshold amount, theGPU control unit 62 may reduce the operating point to a lower powerstate (e.g. lower voltage and/or frequency) to lengthen the utilizationbut reduce the power consumption. That is, if the utilization is low,then it appears to the control unit 62 that the GPU 24 is finishing it'stasks for the frame rapidly and is sleeping for long periods of time.The GPU 24 may therefore operate at a reduced operating point and mayrun for longer periods. Similarly, if the utilization is high, then moreperformance may be needed from the GPU 24. Accordingly, the GPU controlunit 62 may increase the operating point up to the limit set by the dutycycle controller.

In FIG. 3, the GPU control unit 62 is shown coupled to the GPU 24. TheGPU control unit 62 may actually be coupled to the clock generator 28(to change GPU clock frequency) and the power supply 32 (to request adifferent supply voltage magnitude). The GPU control unit 62 may beconfigured to record the current operating point of the GPU 24, and whenthe GPU control unit 62 determines that the operating point is to bechanged, the GPU control unit 62 may be configured to read the newoperating point from the GPU state table 64. That is, the GPU statetable 64 may store the permissible operating points for the GPU 24, andthe GPU control unit 62 may be configured to select the desiredoperating point from the operating points listed in the GPU state table64.

The GPU power measurement unit 46 may be configured to measure the GPUpower consumption. In some embodiments, the GPU power measurement unit46 may receive data from the power measurement circuit 34 to measure theGPU power. In other embodiments, the GPU power measurement unit 46 mayestimate the power consumption based on the activity in the GPU 24. Forexample, the GPU power measurement unit 46 may be configured to read avariety of performance counters in the GPU 24. The values in theperformance counters, along with factors derived from simulations of theGPU 24 or direct measurements on an implementation the GPU 24, may beused to estimate the power consumption. The factors may be programmablein the GPU power measurement unit 46, fixed in hardware, or anycombination of programmable and fixed factors.

In an embodiment, power consumption measurements may be made on theorder of once a millisecond, while the duty cycle controller may operatemore slowly (e.g. on the order of once per second). Accordingly, the lowpass filter 48 may filter the measurements to smooth out themeasurements and reduce momentary spikes that might occur. The low passfilter 48 may effectively “bank” power that is not consumed (e.g. in thearea 16 of FIG. 1) and may permit the power consumption to possiblyexceed the power budget briefly after a period of low power consumption.Other embodiments may not require the filtering and the low pass filter48 may be eliminated.

In the illustrated embodiment, the negative feedback loop to controlpower may be included within a thermal loop to control temperature. Forexample, in FIG. 3, the temperature measured by the temperature sensors30A-30B may be compared to the target temperature, and the temperaturecontrol unit 42 may generate a target GPU power value responsive to thedifference in the temperatures. As the actual temperature rises towardthe target temperature (or perhaps surpasses the target temperature),the temperature control unit 42 may be configured to reduce the targetGPU power value. By reducing power consumption in the GPU 24, thetemperature may be reduced and thus may approach the target temperatureor remain below the target temperature.

The temperature control unit 42 may implement any control mechanism. Forexample the temperature control unit 42 may include a table oftemperatures and corresponding target power values. Alternatively, thetemperature control unit 42 may implement PID control or any subsetthereof, or any other control functionality. In other embodiments, otherfactors than temperature may be used to determine target powerconsumption. For example, desired battery life for a mobile device maybe translated to target power consumption.

In one embodiment, the PMU 26 may be implemented in hardware, or acombination of hardware and software. Specifically in an embodiment, thetemperature control unit 42 may be implemented in software as part of anoperating system executing in the system 18. The duty cycle controller(blocks 44, 50, 52, 54, 56, 58, and 60) may be implemented in a driverthat is executed by the CPU 22 and that controls the GPU. The GPUcontrol unit 62 may be implemented in a control thread that executes onthe GPU 24 itself (referred to as the GPU firmware). It is noted that asummator may be any combination of hardware and/or software thatproduces a sum of the inputs to the summator (where an input having aminus sign may be negated into the sum and the sum may be a signedaddition).

Turning next to FIG. 4, a flowchart is shown illustrating operation ofone embodiment of the GPU control unit 62. While the blocks are shown ina particular order for ease of understanding, any order may be used. Theoperation of FIG. 4 may be repeated continuously during use to updatethe power state of the GPU 24 as it's workload changes over time.

If the utilization of the GPU 24 is less than a low threshold (e.g. 70%in one example) (decision block 70, “yes” leg), the GPU control unit 62may transition the GPU 24 to a lower power state (block 72). If theutilization of the GPU 24 is greater than a high threshold (e.g. 90% inone example) and the duty cycle is 100% (e.g. no throttling due tothermal limits) (decision block 74, “yes” leg), the GPU control unit 62may transition the GPU 24 to a higher power state (block 76).

Turning next to FIG. 5, a flowchart is shown illustrating operation ofone embodiment of the duty cycle controller (e.g. the combination of thesummators 44 and 56, the PControl 50, the IControl 52, the limiter 54,and the block 58 in FIG. 3). While the blocks are shown in a particularorder for ease of understanding, any order may be used.

If the actual power exceeds the target power (decision block 80, “yes”leg), the duty cycle controller may decrease the duty cycle (i.e.increase the off time) (block 82). The determination of the actual powerexceeding the target power may be more than a simple mathematicalcomparison on the current actual power and the target power. Forexample, the low pass filter 48 may have captured the lack of powerconsumption during a time such as the area 16 in FIG. 1, and the actualpower may be able to exceed the target power for a period of time to usethe “unused” power from the previous low power consumption.

In some embodiments, if the target power is greater than the actualpower, the duty cycle controller may not limit the utilization bycontrolling the duty cycle (e.g. the duty cycle may be increased up to100%, or the off time may be zero) (decision block 84, “yes” leg andblock 86).

In one embodiment, the output of the duty cycle controller (e.g. theoutput of the summator 60 in FIG. 3) may be a value representing the offtime for the GPU 24. The GPU control unit 62 may implement a transferfunction converting the off time (or amount of throttling) to a dutycycle measurement. FIG. 6 is an example of such a transfer function. Ifthe output of the duty cycle controller is zero (e.g. the actual poweris less than or equal to the target power), the duty cycle may be 100%.As the duty cycle controller output (off time) increases to a maximumamount, the duty cycle may decrease to a minimum duty cycle (line 90).Once the minimum duty cycle/maximum off time is reached, the duty cycleremains at the minimum duty cycle even if the off time output wouldotherwise be greater (line 92). The minimum duty cycle and/or maximumoff time may be programmable or fixed in the PMU 26, in variousembodiments.

FIG. 7 is a timing diagram illustrating frame times and GPU on and offtimes. As can be seen in FIG. 7, the on and off times need not beregular, but rather may vary over the frame times.

Turning now to FIG. 8, a block diagram of a computer accessible storagemedium 200 is shown. Generally speaking, a computer accessible storagemedium may include any storage media accessible by a computer during useto provide instructions and/or data to the computer. For example, acomputer accessible storage medium may include storage media such asmagnetic or optical media, e.g., disk (fixed or removable), tape,CD-ROM, DVD-ROM, CD-R, CD-RW, DVD-R, DVD-RW, or Blu-Ray. Storage mediamay further include volatile or non-volatile memory media such as RAM(e.g. synchronous dynamic RAM (SDRAM), Rambus DRAM (RDRAM), static RAM(SRAM), etc.), ROM, or Flash memory. Storage media may also includenon-volatile memory (e.g. Flash memory) accessible via a peripheralinterface such as the Universal Serial Bus (USB) interface, a flashmemory interface (FMI), a serial peripheral interface (SPI), etc.Storage media may include microelectromechanical systems (MEMS), as wellas storage media accessible via a communication medium such as a networkand/or a wireless link.

The computer accessible storage medium 200 in FIG. 8 may store anoperating system (OS) 202, a GPU driver 204, and a GPU firmware 206. Asmentioned above, the temperature control unit 42 may be implemented inthe operating system 202, the power control to generate a duty cycle maybe implemented in the GPU driver 204, and the GPU control unit 62 may beimplemented in the GPU firmware 206. Each of the operating system 202,the GPU driver 204, and the GPU firmware 206 may include instructionswhich, when executed in the system 18, may implement the operationdescribed above. In an embodiment, the OS 202 and the GPU driver 204 maybe executed on the CPU 22, and the GPU firmware 206 may be executed onthe GPU 24. A carrier medium may include computer accessible storagemedia as well as transmission media such as wired or wirelesstransmission.

Numerous variations and modifications will become apparent to thoseskilled in the art once the above disclosure is fully appreciated. It isintended that the following claims be interpreted to embrace all suchvariations and modifications.

What is claimed is:
 1. An integrated circuit comprising: a graphicsprocessing unit (GPU); a power monitor coupled to the GPU and configuredto generate a power measurement representing power consumed in the GPU;and a controller configured to: control a duty cycle for the GPU at acurrent operating point to reduce an error between a target powermeasurement and the power measurement generated by the power monitor,wherein: the duty cycle is a limit to a utilization of the GPU, theutilization is a percentage of a frame time that the GPU is powered on,and the frame time is a period of time elapsing for a display of oneframe on a display device; limit the amount of time that the GPU ispowered on at the current operating point within a given frame time toat most the limit represented by the duty cycle; and control the currentoperating point of the GPU responsive to the utilization.
 2. Theintegrated circuit as recited in claim 1 wherein the current operatingpoint comprises an operating voltage and an operating frequency of theGPU.
 3. The integrated circuit as recited in claim 2 wherein thecontroller is configured to: detect that the utilization of the GPU isless than a first threshold; and reduce at least one of the operatingvoltage and the operating frequency of the current operating pointresponsive to detecting that the utilization is less than the firstthreshold.
 4. The integrated circuit as recited in claim 3 wherein thecontroller is configured to: detect that the utilization is greater thana second threshold and that the duty cycle is at a maximum; and increaseat least one of the operating voltage and the operating frequency of thecurrent operating point responsive to detecting that the utilization isgreater than the second threshold and that the duty cycle is at themaximum.
 5. The integrated circuit as recited in claim 1 furthercomprising a second processor and a non-transitory computer accessiblestorage medium storing a plurality of instructions implementing at leasta portion of the controller, wherein the second processor is configuredto execute at least a portion of a plurality of instructions.
 6. Theintegrated circuit as recited in claim 5 wherein a remaining portion ofthe controller is implemented in hardware circuitry.
 7. The integratedcircuit as recited in claim 1 wherein the controller is configured topower off the GPU in response to completion of a task even if the dutycycle has not been exhausted.
 8. The integrated circuit as recited inclaim 1 wherein the power monitor is configured to estimate the powermeasurement responsive to activity in the GPU.
 9. The integrated circuitas recited in claim 1 wherein the power monitor is configured to measurethe power consumption from a power supply to the GPU to determine thepower measurement.
 10. The integrated circuit as recited in claim 1wherein the power monitor is configured to measure a current from apower supply to the GPU to determine the power measurement.
 11. Anintegrated circuit comprising: a graphics processing unit (GPU); and acontroller coupled to the GPU, wherein the controller is configured to:control a duty cycle of the GPU at a current operating point responsiveto a target power measurement representing a target power consumptionfor the GPU and a present power measurement representing an actual powerconsumption of the GPU; limit an amount of time that the GPU is poweredon at the current operating point within a given frame time to at most alimit amount represented by the duty cycle; and control the currentoperating point of the GPU responsive to a utilization of the GPU,wherein: the frame time is a period of time elapsing for a display ofone frame on a display device; and the utilization is a percentage ofthe frame time that the GPU is powered.
 12. The integrated circuit asrecited in claim 11 further comprising a power monitor coupled to theGPU and configured to generate the present power measurement.
 13. Theintegrated circuit as recited in claim 12 wherein the actual powerconsumption is an estimate generated by the power monitor.
 14. Theintegrated circuit as recited in claim 12 wherein the actual powermeasurement is physically measured by the power monitor.
 15. Theintegrated circuit as recited in claim 11 further comprising at leastone temperature sensor configured to measure a temperature of theintegrated circuit, wherein the controller is configured to generate thetarget power measurement responsive to the temperature.
 16. A methodcomprising: controlling a duty cycle of a graphics processing unit (GPU)at a current operating point to reduce an error between a target powermeasurement and a power measurement from a power monitor, wherein: theduty cycle is a limit to a utilization of the GPU, the utilization is apercentage of a frame time that the GPU is powered on, and the frametime is a period of time elapsing for a display of one frame on adisplay device; limiting an amount of time that the GPU is powered on atthe current operating point within a given frame time to at most thelimit represented by the duty cycle; and controlling the currentoperating point of the GPU responsive to the utilization.
 17. The methodas recited in claim 16 wherein controlling the current operating pointcomprises reducing an operating voltage and an operating frequency toincrease the utilization.
 18. The method as recited in claim 17 whereinthe reducing is responsive to the utilization being less than a firstthreshold.
 19. The method as recited in claim 16 wherein controlling thecurrent operating point comprises increasing an operating voltage and anoperating frequency to decrease the utilization.
 20. The method asrecited in claim 16 wherein the power measurement from the power monitoris an estimated power measurement.